<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>员工管理</title>
</head>
<body>
    <div class="box"></div>
    <table>
        <tr>
            <td>序号</td>
            <td>用户名</td>
            <td>手机号</td>
            <td>密码</td>
        </tr>
    </table>
</body>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script>
    const box=document.querySelector('.box')
    axios.get('http://127.0.0.1:7001/zc',{
        params: {
            userName,
            phone,
            passWord
        },
    }).then(res=>{
        res.data.forEach(item => {
            const div=document.createElement('div')
            const sc=document.createElement('button')
            const bj=document.createElement('button')
            div.appendChild(sc)
            div.appendChild(bj)
            box.appendChild(div)
        });
    })
</script>
</html>